home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
catn
/
lindex.n
< prev
next >
Wrap
Text File
|
1994-09-20
|
988b
|
67 lines
lindex(n) Tcl Built-In Commands
_________________________________________________________________
NAME
lindex - Retrieve an element from a list
SYNOPSIS
lindex _l_i_s_t _i_n_d_e_x
_________________________________________________________________
DESCRIPTION
This command treats _l_i_s_t as a Tcl list and returns the
_i_n_d_e_x'th element from it (0 refers to the first element of
the list). In extracting the element, _l_i_n_d_e_x observes the
same rules concerning braces and quotes and backslashes as
the Tcl command interpreter; however, variable substitution
and command substitution do not occur. If _i_n_d_e_x is negative
or greater than or equal to the number of elements in _v_a_l_u_e,
then an empty string is returned.
KEYWORDS
element, index, list
Tcl 1